home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / vlan_cmd.z / vlan_cmd
Text File  |  1998-10-30  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. VVVVLLLLAAAANNNN____CCCCMMMMDDDD                                                              VVVVLLLLAAAANNNN____CCCCMMMMDDDD
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      vlan_cmd -
  10.  
  11. DDDDEEEEFFFFIIIINNNNIIIITTTTIIIIOOOONNNN
  12.      A generic VLAN command interface. A VLAN command string is passed in. The
  13.      command string is expected to be a valid, capitalized, two character VLAN
  14.      command with additional parameter characters as required by the command.
  15.      The string must be NULL terminated. Since the VLAN communication protocol
  16.      requires commands to be terminated with a carriage return character
  17.      instead of a NULL, this function sends a carriage return to the VLAN
  18.      controller in place of the NULL character. A pointer to the VLAN response
  19.      string is returned.  If no values are to be returned, a string consisting
  20.      of a single carriage return and the NULL character is returned. Of a
  21.      return value is expected, it is returned as a NULL terminated string with
  22.      the carriage return stripped off. If a VLAN error occurs (eg.  command
  23.      syntax), the error response string is returned (with the CR stripped).
  24.      _v_l_a_n__e_r_r_n_o is not set since no host side error has occurred.
  25.  
  26. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  27.      char *vlan_cmd( _V_L_A_N__D_E_V
  28.       *vlanptr,char *cmd)
  29.  
  30. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  31.      Name           Type      I/O       Description
  32.      vlanptr             VLAN_DEV *       I               pointer to vlan device
  33.      cmd           char *          I         VLAN command character stringi (NULL terminated).
  34.  
  35. VVVVAAAALLLLUUUUEEEE RRRREEEETTTTUUUURRRRNNNNEEEEDDDD
  36.      If a non-VLAN error occurs, NULL is returned and _v_l_a_n__e_r_r_n_o is set.
  37.      Otherwise a pointer to the VLAN response string is returned.  If a VLAN
  38.      error has occurred, this will be indicated by the response string. The
  39.      response string returned, if any, should be copied to a user buffer
  40.      before the next VLAN command is issued since the response will be
  41.      overwritten by the new command's response.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.